<?php
/**
 * Created by PhpStorm.
 * User: dingboxu
 * Date: 17/2/21
 * Time: 下午6:04
 */

//$httpUrl = "http://192.168.1.113:8088/";

//$httpUrl = "http://115.29.136.117:8090/";
//$httpUrl = "http://192.168.1.111/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";
$httpUrl = "https://www.zhaom.cn:444/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";

//$httpUrl = "http://localhost/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";
//$httpUrl = "https://www.smilense.com/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";
//$httpUrl = "http://localhost/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";
//$httpUrl = "https://www.smilense.com:444/tree_server/GatewayWorker/Applications/TreeServer/EventHttp.php";
//$httpUrl = "http://192.168.1.111:8090";

//  -----  商品标签管理  -----

$event_species_list = array(
    "ActionType" => "event_species_list",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'bzaJLl64zO3',
        "page_num" => "1",
        "every_page_counts" => "10",
        "name_index" => "白"
    )
);

$event_group_list = array(
    "ActionType" => "event_group_list",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h53',
        "SPECIES_ID"=>'2'
    )
);
//
//$event_productor_list = array(
//    "ActionType" => "event_productor_list",
//    "DataDictionary" => array(
//        "GROUP_ID"=>'1',
//        "PROVINCE"=>'天津市',
//        "CITY"=>'天津市',
//        "COUNTY"=>'河东区',
//        "page_num"=>'1',
//        "every_page_counts"=>'10'
//    )
//);


$event_productor_info = array(
    "ActionType" => "event_productor_info",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h54',
        "GROUP_ID"=>'4',
        "PROVINCE"=>'江苏省',
        "CITY"=>'常州市',
        "COUNTY"=>'金坛区',
        "GG_CS"=>"3"
    )
);


$event_customer_login_by_wx = array(
    "ActionType" => "event_customer_login_by_wx",
    "DataDictionary" => array(
        "CUSTOMER_WX_ID"=>'open_id_test2'
    )
);


$event_customer_login_by_phone_number = array(
    "ActionType" => "event_customer_login_by_phone_number",
    "DataDictionary" => array(
        "login_type"=>'verify_code_login',
        "PHONE_NUMBER"=>'18222937821',

    )
);


$event_verify_code_get = array(
    "ActionType" => "event_verify_code_get",
    "DataDictionary" => array(
        "PHONE_NUMBER"=>'18222937821'
    )
);



$event_question_add = array(
    "ActionType" => "event_question_add",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h53',
        "QUESTION_CONTENT"=>'问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写问题内容填写',
        "CONTACT_NUMBER"=>'手机号：222'
    )
);

$event_question_list = array(
    "ActionType" => "event_question_list",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h53'
    )
);


$event_productor_info_hist = array(
    "ActionType" => "event_productor_info_hist",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h53',
        "PRODUCTOR_ID"=>'17'
    )
);

$event_customer_logout = array(
    "ActionType" => "event_customer_logout",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h55'
    )
);



$event_login_state = array(
    "ActionType" => "event_login_state",
    "DataDictionary" => array(
        "CUSTOMER_ID"=>'y0lHfE01h53'
    )
);





$post_data = json_encode($event_verify_code_get);

echo "$post_data<br><br><br>";
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $httpUrl );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
// post传参
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, $post_data);
// curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec ( $ch );
curl_close ( $ch );
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo $result;

